package com.mf.entity.dto.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @Author: lmf
 * @Create: 2024/9/20 9:26
 * Description: 部门请求
 */
@Data
public class DeptDto {
    @Schema(description = "部门id")
    private Integer id;

    @Schema(description = "部门名称", example = "技术部")
    @NotBlank(message = "部门名称不能为空")
    private String name;

    @Schema(description = "所属上级", example = "0")
    private Integer pid;
    @Schema(description = "部门负责人id", example = "1")
    @NotNull(message = "部门负责人id不能为空")
    private Integer managerId;
    @Schema(description = "排序")
    private int sort;
    private String remark;

}
